#pragma once
#include "d3dUtil.h"

class cCamera;
class cQuadObj;

class AnimSequence
{
public:
	AnimSequence(void);
	~AnimSequence(void);

	bool Init( const char* szFileName, UINT WidthNum, UINT HeightNum, UINT NuseNum = 0, D3DCOLOR color = D3DCOLOR_XRGB( 0, 0, 0) );
	void release();

	void PreRender();
	void Render( FLOAT x, FLOAT y, FLOAT z );
	void PostRender();

	void SetScale( FLOAT scale ) { mScale = scale; }
	void SetFrame( UINT cnt ) { uiCurrentCnt = cnt; }
	UINT getTotalFrame() { return mFrames.size(); }

private:
	LPDIRECT3DTEXTURE9 mTexture;
	std::vector<cQuadObj*> mFrames;
	UINT uiCurrentCnt;
	FLOAT mScale;
	char* mFileCoord;

	DWORD mOldCullMode;
};
